home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d19 / gift40b7.arc / PCBTEST.BAT < prev    next >
DOS Batch File  |  1992-01-04  |  1KB  |  52 lines

  1. @echo off
  2. if exist pcbpass.txt del pcbpass.txt
  3. if exist pcbfail.txt del pcbfail.txt
  4. rem if %@ext[%1]==gif goto gif          <-- 4DOS commands, faster than TESTFILE
  5. rem if %@ext[%1]==zip goto zip          <-- 4DOS commands, faster than TESTFILE
  6. testfile gif zip
  7. if errorlevel == 2 goto gif
  8. if errorlevel == 1 goto zip
  9. goto crc
  10.  
  11. :gif
  12. if %2 == test goto gift
  13. giftest %1 /C:GIFTEST.CNF /F:%3 > PCBPASS.TXT
  14. if errorlevel == 25 goto badgif
  15. if errorlevel == 20 goto badgif
  16. if errorlevel == 10 goto end
  17. if errorlevel == 1 goto badgif
  18. goto end
  19.  
  20. :gift
  21. echo Testing GIF file...
  22. giftest %1 > PCBPASS.TXT
  23. if errorlevel == 25 goto badgif
  24. if errorlevel == 20 goto badgif
  25. if errorlevel == 10 goto end
  26. if errorlevel == 1 goto badgif
  27. goto end
  28.  
  29. :badgif
  30. beep
  31. move PCBPASS.TXT PCBFAIL.TXT
  32. goto end
  33.  
  34. :zip
  35. ptest %1 ptest.cfg
  36. if %2 == test goto end
  37. if exist pcbfail.txt goto end
  38.  
  39. :crc
  40. if exist pcbpass.txt del pcbpass.txt
  41. rem proecho 1 ~Adding %@name[%1] to CRC database...
  42. zdcsfc %1 %2 %3
  43. goto end
  44.  
  45. :end
  46.  
  47. :asta
  48. if exist PCBPASS.TXT type PCBPASS.TXT >> f:\pcb\PCBPASS.LOG
  49. if exist PCBFAIL.TXT type PCBFAIL.TXT >> f:\pcb\PCBFAIL.LOG
  50. if exist PCBFAIL.TXT move %1 h:\hold /q
  51. if exist %3 type %3 >> f:\pcb\desc
  52.